package com.example.volunteer.service.impl;

import com.example.volunteer.service.SmsSender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
@Qualifier("MockSmsSender")
public class MockSmsSender implements SmsSender {

    private static final Logger logger = LoggerFactory.getLogger(MockSmsSender.class);

    @Override
    public void sendSms(String phoneNumber, String message) {
        logger.info("模拟发送短信到 {}: {}", phoneNumber, message);
        // 实际开发中可以写入数据库或日志，方便测试验证
    }
}
